package com.huatai.auth.handler;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @program: nanming-saas
 * @description: 返回码信息
 * @author: songxiude
 * @create: 2024-05-29 15:12
 **/
@Getter
@AllArgsConstructor
public enum ResultCode {

	SUCCESS(200, "操作成功"),
	FAILED(500, "操作失败"),
	AUTH_FAIL(400, "认证失败,账号或密码错误"),
	INVALID_TOKEN(401, "token无效"),
	NONSUPPORT_GRANT_TYPE(401, "授权类型不支持"),
	;

	private final Integer code;

	private final String msg;

}

